github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/How to setup a new apache server.txt (about) 1 1) Unzip the server into it's own folder. 2 2) Go into the newly created folder and delete the index.html from "htdocs" 3 3) Edit the conf/httpd.conf with the following 4 - Setup the SRVROOT to 5 Define SRVROOT ".." 6 ServerRoot "${SRVROOT}/" 7 8 - Change listen to: 9 Listen 8080 10 11 - Uncomment these lines: 12 #LoadModule headers_module modules/mod_headers.so 13 #LoadModule rewrite_module modules/mod_rewrite.so 14 15 - Uncomment and change #ServerName to this: 16 ServerName localhost:8080 17 18 - Change DocumentRoot to: 19 DocumentRoot "${SRVROOT}/SRVROOT/htdocs" 20 21 - Change <Directory ...> to: 22 <Directory "${SRVROOT}/../SRVROOT/htdocs"> 23 24 - Inside the directory above change "AllowOverride None" to: 25 AllowOverride All 26 Header Set Pragma "no-cache" 27 Header Set Expires "Thu, 1 Jan 1970 00:00:00 GMT" 28 Header Set Cache-Control "max-age=0, no-store, no-cache, must-revalidate" 29 Header Unset ETag 30 FileETag None 31 32 - Change the scriptalias to: 33 ScriptAlias /cgi-bin/ "${SRVROOT}/../SRVROOT/cgi-bin/" 34 35 - Change the cgi-bin <Directory ..> to: 36 <Directory "${SRVROOT}/../SRVROOT/cgi-bin">